package com.messe.base.models;

import java.sql.Timestamp;

/**
 * SenderReceiverMessageRel entity. @author MyEclipse Persistence Tools
 */

public class SenderReceiverMessageRel implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = -6138210829554526378L;
	private Integer id;
	private Message message;
	private Integer type;//消息类型(1010：充值; 1020：升级; 1030：续费; 1040：加人; 
						//1050：会刊购买; 1060：行业购买; 1070：邮件域名备案; 1080：短信域名备案;
						//1090：邮件推广; 1100：短信推广;
						//2010：商机创建通知;
						//10000：观众线索导入; 10010：到场观众导入; 10020：未到场观众导入;)
	private Person personBySenderId;
	private Organization senderOrg;
	private Person personByReceiverId;
	private Organization ReceiverOrg;
	private Integer status;
	private Timestamp createdStamp;
	private Timestamp lastUpdatedStamp;
	private Integer value;
	
	private String misc;
	
	// Constructors

	/** default constructor */
	public SenderReceiverMessageRel() {
	}

	/** full constructor */
	public SenderReceiverMessageRel(Integer id, Message message,
			Person personBySenderId, Person personByReceiverId, Integer status,
			Timestamp createdStamp, Timestamp lastUpdatedStamp) {
		this.id = id;
		this.message = message;
		this.personBySenderId = personBySenderId;
		this.personByReceiverId = personByReceiverId;
		this.status = status;
		this.createdStamp = createdStamp;
		this.lastUpdatedStamp = lastUpdatedStamp;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Organization getSenderOrg() {
		return senderOrg;
	}

	public void setSenderOrg(Organization senderOrg) {
		this.senderOrg = senderOrg;
	}

	public Organization getReceiverOrg() {
		return ReceiverOrg;
	}

	public void setReceiverOrg(Organization receiverOrg) {
		ReceiverOrg = receiverOrg;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Message getMessage() {
		return this.message;
	}

	public void setMessage(Message message) {
		this.message = message;
	}

	public Person getPersonBySenderId() {
		return this.personBySenderId;
	}

	public void setPersonBySenderId(Person personBySenderId) {
		this.personBySenderId = personBySenderId;
	}

	public Person getPersonByReceiverId() {
		return this.personByReceiverId;
	}

	public void setPersonByReceiverId(Person personByReceiverId) {
		this.personByReceiverId = personByReceiverId;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Timestamp getCreatedStamp() {
		return this.createdStamp;
	}

	public void setCreatedStamp(Timestamp createdStamp) {
		this.createdStamp = createdStamp;
	}

	public Timestamp getLastUpdatedStamp() {
		return this.lastUpdatedStamp;
	}

	public void setLastUpdatedStamp(Timestamp lastUpdatedStamp) {
		this.lastUpdatedStamp = lastUpdatedStamp;
	}

	public Integer getValue() {
		return value;
	}

	public void setValue(Integer value) {
		this.value = value;
	}

	public String getMisc() {
		return misc;
	}

	
	public void setMisc(String misc) {
		this.misc = misc;
	}

}